/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.h2t.loveplace.models;

import com.nokia.maps.common.GeoCoordinate;
import com.sun.lwuit.Image;

/**
 *
 * @author PHAN THAI
 */
public class Place {

    private int id;
    private String title;
    private String img;
    private String description;
    private double lat, lon;

    public Place(int id, String title, String img, String description, double lat, double lon) {
        this.id = id;
        this.title = title;
        this.img = img;
        this.description = description;
        this.lat = lat;
        this.lon = lon;
    }

    public Place(String title, String img, String description, double lat, double lon) {
        this.title = title;
        this.img = img;
        this.description = description;
        this.lat = lat;
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public final GeoCoordinate getLocation() {
        return new GeoCoordinate(lat,
                lon, 0);
    }
}
